-- GENERATED SPELL FOR [Sara] --


function spell0_33134(pUnit, Event) --@Brain Link,n/a--
pUnit:FullCastSpellOnTarget(63802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33134', 31500, 1)
end

function spell1_33134(pUnit, Event) --@Death Ray,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(63891,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_33134', 1, 1)
end

function spell2_33134(pUnit, Event) --@Malady of the Mind,Self--
pUnit:FullCastSpellOnTarget(63830,pUnit)
pUnit:RegisterEvent('Sorts_33134', 5500, 1)
end

function spell3_33134(pUnit, Event) --@Psychosis,Self--
pUnit:FullCastSpellOnTarget(63795,pUnit)
pUnit:RegisterEvent('Sorts_33134', 2900, 1)
end

function spell4_33134(pUnit, Event) --@Psychosis,Self--
pUnit:FullCastSpellOnTarget(65301,pUnit)
pUnit:RegisterEvent('Sorts_33134', 1000, 1)
end

function spell5_33134(pUnit, Event) --@Sara\'s Anger,n/a--
pUnit:FullCastSpellOnTarget(63147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33134', 16000, 1)
end

function spell6_33134(pUnit, Event) --@Sara\'s Blessing,n/a--
pUnit:FullCastSpellOnTarget(63134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33134', 24000, 1)
end

function spell7_33134(pUnit, Event) --@Sara\'s Fervor,n/a--
pUnit:FullCastSpellOnTarget(63138,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33134', 19000, 1)
end

function spell8_33134(pUnit, Event) --@Shadowy Barrier,Self--
pUnit:FullCastSpellOnTarget(64775,pUnit)
pUnit:RegisterEvent('Sorts_33134', 572, 1)
end

function Sorts_33134(pUnit, Event)
local choix_sorts_33134 = math.random(0, 8)
if choix_sorts_33134 == 0 then
pUnit:RegisterEvent('spell0_33134', 1, 1)
end
if choix_sorts_33134 == 1 then
pUnit:RegisterEvent('spell1_33134', 1, 1)
end
if choix_sorts_33134 == 2 then
pUnit:RegisterEvent('spell2_33134', 1, 1)
end
if choix_sorts_33134 == 3 then
pUnit:RegisterEvent('spell3_33134', 1, 1)
end
if choix_sorts_33134 == 4 then
pUnit:RegisterEvent('spell4_33134', 1, 1)
end
if choix_sorts_33134 == 5 then
pUnit:RegisterEvent('spell5_33134', 1, 1)
end
if choix_sorts_33134 == 6 then
pUnit:RegisterEvent('spell6_33134', 1, 1)
end
if choix_sorts_33134 == 7 then
pUnit:RegisterEvent('spell7_33134', 1, 1)
end
if choix_sorts_33134 == 8 then
pUnit:RegisterEvent('spell8_33134', 1, 1)
end
end

function mob33134_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33134', math.random(1500, 3000), 1)
end

function mob33134_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33134_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33134_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33134, 1, 'mob33134_Action')
RegisterUnitEvent(33134, 2, 'mob33134_Leave')
RegisterUnitEvent(33134, 3, 'mob33134_Kill')
RegisterUnitEvent(33134, 4, 'mob33134_Die')
